from selenium.webdriver.common.by import By

from base import Base

class Page(Base):
    def sou(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索菜谱"]')
        ele=self.find_element(loc)
        return ele
    def shuru(self):
        loc=(By.ID,'com.xiachufang:id/search_edit_text')
        ele=self.find_element(loc)
        return ele
    def an(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        ele = self.find_element(loc)
        return ele
